Download and Extract AMQP client from github:
  archive.extracted:
    - name: /opt/
    - source: https://github.com/alanxz/rabbitmq-c/archive/v0.5.2.tar.gz
    - source_hash: md5=0ea60581f635e101c7f3c17a33ace5e4
    - tar_options: zxvf
    - archive_format: tar
    - if_missing: /opt/rabbitmq-c-0.5.2/

Install AMQP Client:
  cmd.run:
    - name: 'cd /opt/rabbitmq-c-0.5.2; autoreconf -i; ./configure; make; make install;'

Manual Install AMQP:
  pecl.installed:
    - name: amqp
    - defaults: True

add amqp extension to php.ini:
  file.managed:
    - name: /etc/php-zts.d/amqp.ini
    - user: root
    - group: root
    - mode: 644
    - contents: 'extension=amqp.so'